
package com.ny.service;

import com.ny.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductService {
    public List<Product> findAllProduct() throws Exception;
    int updateProductStock(int productId, int number) throws Exception;
    int insertProduct(Product product) throws Exception;
    Product getProductById(int id) throws Exception;


    int deleteProduct (int id) throws Exception;

    int updateProduct (Product product) throws Exception;
}